package tedu.shoot;

import java.awt.image.BufferedImage;

public class Sky extends FlyingObject{
    private int speed;
    private int y1;
    public Sky(){
        super(World.WIDTH,World.HEIGHT,0,0);
        speed = 1;
        y1 = -700;
    }

    public void step(){
        y += speed;
        y1 += speed;
        if (y >= World.HEIGHT) {
            y = -World.HEIGHT;
        }
        if (y1 >= World.HEIGHT){
            y1 = -World.HEIGHT;
        }
    }

    public BufferedImage getImage() {
        return Images.sky;
    }

    public int getY1(){
        return y1;
    }
}
